package org.icy.core.setup.verification;

import org.icy.core.setup.VerificationResult;
import org.icy.utils.ClassLoaderUtils;

public class MailVerification implements Verification {

	@Override
	public VerificationResult verify() {
		if (ClassLoaderUtils.testClass("javax.mail.Message")) {
			return new VerificationResult(true, "Yes", "Mail support", null);
		}
		return new VerificationResult(false, false, "No", "Mail support", "The JavaMail<sup>(tm)</sup> API is not installed.");
	}

}
